
#ifndef __BSP_SHELL_H__
#define __BSP_SHELL_H__

#ifdef __cplusplus
extern "C" {
#endif


#include "b_bsp.h"

// ==== 命令注册机制 ====
typedef int (*cmd_handler_t)(int argc, char **argv); // 👈 新类型

//void shell_fun(void);
void shell_fun(int c);
void shell_register(cmd_handler_t handler, const char *name);

void shell_init(void);

#ifdef __cplusplus
}
#endif

#endif

